﻿using Agile.Infra.Pay.WxPay.Models;
using Microsoft.AspNetCore.Http;

namespace Agile.Infra.Pay.WxPay
{
    public interface IWxPayService
    {
        /// <summary> JSAPI支付 </summary> 
        Task<WxJSAPIPayResponse> JSAPIPayAsync(WxJSAPIPayRequest request);

        /// <summary> 异步通知 </summary> 
        Task<WxPayNotifyResponse> NotifyAsync(HttpRequest httpRequest, WxPayNotifyRequest request);

        /// <summary> 分账 </summary> 
        Task<WxProfitSharingResponse> ProfitSharingAsync(WxProfitSharingRequest request);
    }
}
